package net.jqsoft.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import net.jqsoft.demo.entity.Employee;
import net.jqsoft.demo.mapper.EmployeeMapper;
import net.jqsoft.demo.service.EmployeeService;



@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements EmployeeService {

	@Override
	public IPage<Employee> pageSelect(IPage<Employee> page) {
		return page.setRecords(baseMapper.pageEmployee(page));
	}

	@Override
	public Employee getEntity(Integer id) {
		return baseMapper.getEntity(id);
	}

}
